package car.slyc.model;

import java.util.Date;

public class Log {
    private String id;

    private String  time;

    private String requestmas;

    private String postmsg;

    private String method;

    private String ip;

    private String uri;

    private String username;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getRequestmas() {
        return requestmas;
    }

    public void setRequestmas(String requestmas) {
        this.requestmas = requestmas == null ? null : requestmas.trim();
    }

    public String getPostmsg() {
        return postmsg;
    }

    public void setPostmsg(String postmsg) {
        this.postmsg = postmsg == null ? null : postmsg.trim();
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method == null ? null : method.trim();
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip == null ? null : ip.trim();
    }

    public String getUri() {
        return uri;
    }

    public void setUri(String uri) {
        this.uri = uri == null ? null : uri.trim();
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", time=").append(time);
        sb.append(", requestmas=").append(requestmas);
        sb.append(", postmsg=").append(postmsg);
        sb.append(", method=").append(method);
        sb.append(", ip=").append(ip);
        sb.append(", uri=").append(uri);
        sb.append(", username=").append(username);
        sb.append("]");
        return sb.toString();
    }
}